<?php if($multipage): ?>
    <ul>
        <?php if (isset($multipage['prexpage']) && $multipage['prexpage']): ?>
        <li style="width:70px;"><a href="<?=$multipage['prexpage']['link'] ?>">上一页</a></li>
        <?php else: ?>
        <li class="disabled" style="width:70px;"><a href="javascript:;">上一页</a></li>
        <?php endif ?>
        <?php foreach($multipage['list'] as $key => $value): ?>
        <?php if ($value['selected'] == 1): ?>
        <li class="active"><a href="javascript:;"><?=$value['page']?></a></li>
        <?php else: ?>
        <li><a href="<?=$value['link']?>"><?=$value['page']?></a></li>
        <?php endif ?>
        <?php endforeach ?>
        <?php if($multipage['nextpage']): ?>
        <li style="width:70px;"><a href="<?=$multipage['nextpage']['link'] ?>">下一页</a></li>
        <?php else: ?>
        <li class="disabled" style="width:70px;"><a href="javascript:;">下一页</a></li>
        <?php endif ?>
    </ul>
<?php endif ?>